package com.itheima.springbootcondition.condition;


import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

@Target({ElementType.TYPE, ElementType.METHOD})//注解起作用的位置
@Retention(RetentionPolicy.RUNTIME)//注解什么时候起作用
@Documented//生成JavaDoc文档
//前三个为元注解,是从Conditional中赋值过来的
@Conditional(ClassCondition.class)
public @interface ConditionOnClass {
    String[] value();
}
